How does it know: You have to write the reading and writting functionality manually yourself. if you do something wrong it will end wrong. it does not know something itself.
Its up to you what you write and do not write ultimately.
Its up to you what you write and do not write ultimately.