small refactor of mamba.enterprise.common
added support for foreign keys in SQLite for version >= 3.6.19, resolves #19
model template adapted to new mamba.enterprise imports, resolves #22