changed to dev settings
added some verifications before performing actions that alter db