Create and restore database backups from PHP