adding database handler