first attempt at implementing SQLite