You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: key.go
    path of file: ./repos/ente/server/pkg/repo/authenticator
    
    the code of the file until where you have to start completion: package authenticator

import (
	"context"
	"database/sql"
	"errors"

	"github.com/ente-io/museum/ente"
	model "github.com/ente-io/museum/ente/authenticator"
	"github.com/ente-io/stacktrace"
)

// CreateTotpEntry inserts a new &{totp.CreateTotpEntry} entry
func (r *Repository) CreateKey(ctx context.Context, userID int64, entry model.CreateKeyRequest) error {
	_, err := r.DB.ExecContext(ct
    
func (r *Repository) CreateKey(ctx context.Context, userID int64, entry model.CreateKeyRequest) error {
	_, err := r.DB.ExecContext(ctx, `INSERT into authenticator_key(
                         user_id,
                         encrypted_key,
                         header) VALUES ($1,$2,$3)`,
		userID,             // $1 user_id
		entry.EncryptedKey, // $2 encrypted_data
		entry.Header)

	if err != nil {
		return stacktrace.Propagate(err, "Failed to createTotpEntry")
	}
	return nil
}