Fixing some tests that were failing on jenkins
 - Add tbl_prefix to sample config file to fix failing tests
 - Shorten long lines to keep pep8 happy
 - Avoid mysql operations in test_CrawlDBI teardown when mysql is not
   available

Change-Id: I644bd3b6e0e2a1666cd227febb45f0abf0db493c