BRANCH SP-721:
   turned on foreign_keys in sqlite at connection time
   removed extra lines in sql_test