Started work on the db handler