added automatic database backup