updated docs
add sqlite logic and other improvments