input: 
  from flask import Flask, jsonify
  import sqlite3
  
  app = Flask(__name__)
  
  def dict_factory(cursor, row):
      d = {}
      for idx, col in enumerate(cursor.description):
          d[col[0]] = row[idx]
      return d
  
  @app.route('/get_users', methods=['GET'])
  def get_users():
      connection = sqlite3.connect('database.db')
      connection.row_factory = dict_factory
      cur = connection.cursor()
      all_users = cur.execute('SELECT * FROM users;').fetchall()
      connection.close()
      return jsonify(all_users)
  
  if __name__ == '__main__':
      app.run(debug=True)
  
  # Example usage:
  # Assuming 'database.db' contains a table named 'users' with columns 'id' and 'name'
  # Fetching data:
  # Request: GET http://127.0.0.1:5000/get_users
  # Response:
  # [
  #     {"id": 1, "name": "Alice"},
  #     {"id": 2, "name": "Bob"}
  # ]
  
output:     
      connection = sqlite3.connect('database.db')
      connection.row_factory = dict_factory
      cur = connection.cursor()
      all_users = cur.execute('SELECT * FROM users;').fetchall()
      connection.close()
      return jsonify(all_users)
  