Database access class

Read functions for entities