Adding prebackup script for MySQL and PostgreSQL