Saving games to SQLite database