modified db_helper