Use only one DB connection

Use one connection for tests. And the ability to disable foreign keys