Fix installation when users with old usernames are in database