better test for Modeler.db
add Model class and Modeler.prototype.model factory