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: sqlite.rs
    path of file: ./repos/freenet-core/crates/core/src/contract/storages
    
    the code of the file until where you have to start completion: use std::{path::Path, str::FromStr};

use freenet_stdlib::prelude::*;
use sqlx::{
    sqlite::{SqliteConnectOptions, SqliteRow},
    ConnectOptions, Row, SqlitePool,
};

use crate::{
    contract::ContractKey,
    wasm_runtime::{ContractError, StateStorage, StateStoreError},
};

async fn create_contracts_table(pool: &Sql
    
    async fn store(&mut self, key: ContractKey, state: WrappedState) -> Result<(), Self::Error> {
        sqlx::query(
            "INSERT INTO states (contract, state) 
                     VALUES ($1, $2) 
                     ON CONFLICT(contract) DO UPDATE SET state = excluded.state
                     ",
        )
        .bind(key.as_bytes())
        .bind(state.as_ref())
        .execute(&self.0)
        .await?;
        Ok(())
    }