Add all() method to databaseobject