corrections to quests SQL