text: import click
  from pymaster.ext.database import db
  from pymaster.ext.auth import create_user
  from pymaster.models import Nations
  
  
  def create_db():
      """Creates database"""
      db.create_all()
  
  
  def drop_db():
      """Cleans database"""
      db.drop_all()
  
  
  def populate_db():
      """Populate db with sample data"""
      
  
  
  def init_app(app):
      # add multiple commands in a bulk
      for command in [create_db, drop_db, populate_db]:
          app.cli.add_command(app.cli.command()(command))
  
      # add a single command
      @app.cli.command()
      @click.option('--username', '-u')
      @click.option('--password', '-p')
      def add_user(username, password):
          """Adds a new user to the database"""
          return create_user(username, password)
  