added SQLite structure and basic implementation without batching