Implement sqlite miner