started implementing client and database backend in Db.hs