afterRestore hook is called before afterCheckout

That way, the database is restored immediately after restoring the upgrade,
so if any of the other hooks fail, the database is in a consistent state.
Implemented reset task to delete all data

reset clears the data directory and resets the database to
database/baseline.sql
Implemented reset task to delete all data

reset clears the data directory and resets the database to
database/baseline.sql
Fixed migrate task for mysql

MySQL uses NOW(), sqlite datetime() - needed to abstract this function call
mysql db.exec() supports multiple statements

(needed for migrations, reset etc.)
Fixed mysql db.clear()
Reset restores backup on error
fixed mysql db.dump()
Fixed backup tagging

Previously used lexigraphical sort which is wrong for test.9 vs. test.10
Increased maxBuffer for shell tasks