Refactored + rotation
Merge pull request #2 from caruccio/master

DB backup: refactored  + rotation