implementation of DB backup