Database Handler code for group project