updated forms and added update database functionality