Add task to back up database

Unsafe migrations should backup the database before running to enable a more
seamless recovery if something goes wrong.