Refactor current code.
Forgot to remove debugging stuff.
Fix in-memory databases.

Append a colon to ":memory" in fixfilename().
Fix sqlite3_errmsg.

Return bytestring(ccall(...)) to convert ptr to string.
Test fixfilename().