created Datbase class to abstract persistent data from the Backend