Modifying a database to save authentication information