Sqlite3 constant issues

If it worked ok then don't need log I think. By log was meant the terminal output.
I wonder whether you ran it from the wrong directory, or forgot the unsafe-perms the first time.