Added database backend testing code