input: Write a function to update user data in a SQLite database.
  assert update_user('mydatabase.db', '12345', 'Jane Doe', 28, 'premium') is None
  assert update_user('mydatabase.db', '67890', 'John Doe', 40, 'standard') is None
output: def update_user(database, user_id, name, age, membership):
      import sqlite3
  
      conn = sqlite3.connect(database)
      cursor = conn.cursor()
      
      update_query = '''
      UPDATE users
      SET name = ?, age = ?, membership = ?
      WHERE id = ?
      '''
      
      cursor.execute(update_query, (name, age, membership, user_id))
      conn.commit()
      
      cursor.close()
      conn.close()