Added the possibility to read stored objects from the database