Added getter and setter for entity manager in the database class