added function to create database backup