clean up UserDatabase new into UserDatabaseFactory