SQLite fix for user profile saving