Update in database

I changed the Database object to be in the database class and changed it
so the DBAccess class got instances of the database