Utils for DB backup and optimization