Set up databases using create_all().

    :param eng: The sqlalchemy engine to use.
    :param list modules: A list of modules with models inside.
    :param list models:  A list of models to setup.

def setup_database(eng, modules=None, models=None):
    """
    Set up databases using create_all().

    :param eng: The sqlalchemy engine to use.
    :param list modules: A list of modules with models inside.
    :param list models:  A list of models to setup.
    """
    if modules is not None:
        for modu in modules:
            for m in modu.__all__:
                getattr(modu, m).metadata.create_all(eng)
    if models is not None:
        for mod in models:
            mod.metadata.create_all(eng)