Fixed a bug of database.add_user.