Resolve an error that corrupts the local database when a user logs in with a mixed-case username