Tons of changes: Pool management now works, sqlite3 message logging, etc