minor update in edit funciton
fetch function in model
database changes
minor changes