add import of orm module and type in functions

In the next commit I must add a function to create modules of the
models, so we can import them in other sources and use autocomplete to
code easily