all sql related errors are to sqlerror
more formatted todo.cpp