Bring up to date

Use int64s now, and speed up compile by removing the dependency on sqlite3, outside of tests.