review for database & queries