Added triggers and changed the db version.
Updates to auto_update trigger.
Fixed an issue where the auto_update_date was calculating the date
incorrectly. (Using localtime)