Added first half of testing code for DatabaseHandler