Don't connect twice to the SQL database, instead pass connection into alias update
Make sure users can't change to empty alias