Reading Entities from the database.

Entities can now be read from the database