Added database dump function