Refactoring - Database models can be loaded from config; fixes in api module loading (and urls). Missing files