fixes bug
logs all sql bugs for now (todo: find connection bug and ignore it, this one was too general)