Working select and insert sqlite functions
Implemented scraper lockout function