db reseted and edit edit and destroy method