Fixed db syntax error and finished notification response system