database dump and model