Changed sqlite3 usage tests to be linked into one executable. This provokes multiple definition errors for non-inlined free functions. Also ran clang-format on the changed headers.