Added more interactivity with the database and an additional hook+command