finished mysql and pgsql backup functions