connect edit form to database

avatar processing not yet completed