Fix debug issues

Changes:
1) Removes debugging from SQL/karma.
2) Fixes startup runtime.