fixed update method
matched return json to match other method returns style
fixed failing test case for editing user
added flags to test command
cleanup
return db instance for testability