code: def init_db(uri, base, **kwargs):
      
      engine = create_engine(uri, **kwargs)
      base.metadata.create_all(engine)
      return engine
docs: Create engine and tables
      :param uri: db uri
      :param base: declarative base
      :returns: an engine