stripping down and removing SQL for levelDB