database is only for reading or for writing