Added the periods#do_update action
Refactored database.yml