database dump and code for fetching data