fixed little bug db->database