avatar in the database and change avatar functionality