input: Write a python function to create, read, update, and delete records in a database using Flask-RESTful and SQLAlchemy.
  assert create_record('John', 'Test description') == {'status': 'success'}, 201
  assert read_record(1) == {'name': 'John', 'description': 'Test description'}, 200
  assert update_record(1, 'Jane', 'Updated description') == {'status': 'success'}, 200
  assert delete_record(1) == {'status': 'success'}, 200
  assert read_record(1) == {'status': 'not found'}, 404
output: from flask import Flask, request
  from flask_restful import Resource, Api
  from flask_sqlalchemy import SQLAlchemy
  
  app = Flask(__name__)
  app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
  db = SQLAlchemy(app)
  api = Api(app)
  
  class Record(db.Model):
      id = db.Column(db.Integer, primary_key=True)
      name = db.Column(db.String(80), nullable=False)
      description = db.Column(db.String(200), nullable=False)
  
  class RecordResource(Resource):
      def post(self):
          data = request.get_json()
          new_record = Record(name=data['name'], description=data['description'])
          db.session.add(new_record)
          db.session.commit()
          return {'status': 'success'}, 201
  
      def get(self, record_id):
          record = Record.query.get(record_id)
          if record:
              return {'name': record.name, 'description': record.description}, 200
          else:
              return {'status': 'not found'}, 404
  
      def put(self, record_id):
          data = request.get_json()
          record = Record.query.get(record_id)
          if record:
              record.name = data['name']
              record.description = data['description']
              db.session.commit()
              return {'status': 'success'}, 200
          else:
              return {'status': 'not found'}, 404
  
      def delete(self, record_id):
          record = Record.query.get(record_id)
          if record:
              db.session.delete(record)
              db.session.commit()
              return {'status': 'success'}, 200
          else:
              return {'status': 'not found'}, 404
  
  api.add_resource(RecordResource, '/record', '/record/<int:record_id>')
  
  if __name__ == '__main__':
      db.create_all()
      app.run(debug=True)
  
  def create_record(name, description):
      with app.test_client() as client:
          response = client.post('/record', json={'name': name, 'description': description})
          return response.get_json(), response.status_code
  
  def read_record(record_id):
      with app.test_client() as client:
          response = client.get(f'/record/{record_id}')
          return response.get_json(), response.status_code
  
  def update_record(record_id, name, description):
      with app.test_client() as client:
          response = client.put(f'/record/{record_id}', json={'name': name, 'description': description})
          return response.get_json(), response.status_code
  
  def delete_record(record_id):
      with app.test_client() as client:
          response = client.delete(f'/record/{record_id}')
          return response.get_json(), response.status_code