database handler file