I have a database code and a model in c# and I want to rewrite this code to be used in react native. Below the c# code there is my code, can you help me out and make the same functional database as in c#?

[assembly: Dependency(typeof(FeladatokDatabase))]
namespace Felvetelibazis.Database
{
    public class FeladatokDatabase : IFeladatokStore
    {
        public static readonly string DbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FeladatokAdatbazis.db3");

        static readonly Lazy<SQLiteAsyncConnection> _databaseConnectionHolder =
            new Lazy<SQLiteAsyncConnection>(() => new SQLiteAsyncConnection(DbPath, SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create | SQLiteOpenFlags.SharedCache));

        static SQLiteAsyncConnection DatabaseConnection => _databaseConnectionHolder.Value;

        protected static async ValueTask<SQLiteAsyncConnection> GetDatabaseConnection<T>() where T : class, new()
        {
            if (!DatabaseConnection.TableMappings.Any(x => x.MappedType.Name == typeof(T).Name))
            {
                await DatabaseConnection.EnableWriteAheadLoggingAsync().ConfigureAwait(false);
                await DatabaseConnection.CreateTableAsync<T>().ConfigureAwait(false);
            }

            return DatabaseConnection;
        }

        protected static Task<T> AttemptAndRetry<T>(Func<Task<T>> action, int numRetries = 3)
        {
            return Policy.Handle<Exception>().WaitAndRetryAsync(numRetries, pollyRetryAttempt).ExecuteAsync(action);

            static TimeSpan pollyRetryAttempt(int attemptNumber) => TimeSpan.FromSeconds(Math.Pow(2, attemptNumber));
        }
        public async Task<IEnumerable<Feladatok>> FeladatTantargyankent(string tantargy)
        {
            var databaseConnection = await GetDatabaseConnection<Feladatok>().ConfigureAwait(false);
            return await AttemptAndRetry(() => databaseConnection.Table<Feladatok>().Where(x => x.Tantargy == tantargy).ToListAsync()).ConfigureAwait(false);

        }
        public async Task FeladatFrissites(Feladatok feladat)
        {
            var databaseConnection = await GetDatabaseConnection<Feladatok>().ConfigureAwait(false);
            await AttemptAndRetry(() => databaseConnection.UpdateAsync(feladat)).ConfigureAwait(false);
        }
        public async Task<IEnumerable<Feladatok>> ErettsegiFeladatKereses(string tantargy, string evszam, bool emelt)
        {
            var databaseConnection = await GetDatabaseConnection<Feladatok>().ConfigureAwait(false);
            return await AttemptAndRetry(() => databaseConnection.Table<Feladatok>().Where(x => x.Tantargy == tantargy && x.Evszam == evszam && x.Emelt == emelt).ToListAsync()).ConfigureAwait(false);
        }
    }
}

namespace Felvetelibazis.Models
{
    [Table("Feladatok")]
    public class Feladatok
    {
        [AutoIncrement, PrimaryKey]
        public int ID { get; set; }
        public string Kerdes { get; set; }
        public string Kerdes2 { get; set; }
        public string Kerdes3 { get; set; }
        public string Valasz1 { get; set; }
        public string Valasz2 { get; set; }
        public string Valasz3 { get; set; }
        public string Valasz4 { get; set; }
        public string Valasz5 { get; set; }
        public string Valasz6 { get; set; }
        public int Megoldas { get; set; }
        public string Magyarazas { get; set; }
        public string Magyarazas2 { get; set; }
        public int ReszFeladatszam { get; set; }
        public int Feladatszam { get; set; }
        public int Pont { get; set; }
        public string Feladattipus { get; set; }
        public string Evszam { get; set; }
        public string Tantargy { get; set; }
        public bool Emelt { get; set; }
    }

My react native database code:

import * as SQLite from 'expo-sqlite';

const db = SQLite.openDatabase('myDatabase.db');

export const init = () => {
  return new Promise((resolve, reject) => {
    db.transaction((txn) => {
      txn.executeSql(
        'CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(20), age INT)',
        [],
        () => {
          resolve();
        },
        (err) => { // <-- fixed error here
          reject(err);
        },
      );
    });
  });
};

export const insertPerson = (name, age) => {
  return new Promise((resolve, reject) => {
    db.transaction((txn) => {
      txn.executeSql(
        'INSERT INTO people (name, age) VALUES (?, ?)',
        [name, age],
        (_, result) => { // <-- fixed error here
          resolve(result);
        },
        (err) => { // <-- fixed error here
          reject(err);
        },
      );
    });
  });
};

export const fetchAllPeople = () => {
  return new Promise((resolve, reject) => {
    db.transaction((txn) => {
      txn.executeSql(
        'SELECT * FROM people',
        [],
        (_, result) => { // <-- fixed error here
          resolve(result.rows._array); // <-- fixed error here
        },
        (err) => { // <-- fixed error here
          reject(err);
        },
      );
    });
  });
};