Added database errmsg to change_user

Added database errmsg to change_user