Added some basic read operations for database and fixed a consistency issue with object id getters