added parent classes and update method to dbhandler. update() is now called in the onPause() method of every class through super() chaining