allow export/import of db models, issue 1316 (experimental), thanks Alan