Rewrite of grepbugs.py, removed dependency on shell scripts, expanded usage of sqlite to imporve repo scanning support.