minor refactoring, added reset db to deploy task