completed: DB, Sanitization, Error checking

Finished the database connections, added light sanitization, fixed some
of the more common exceptions that were thrown so that they had a
legitimate process to carry out, such as setting a invalid url’s crawl
attribute in the database to false.