Refactor edit_responses, database getters, bugfixes