migrated users to database