Added calculations for updates of the database with questions