Added code to turn on foreign key constrains on each connection (assuming, will write tests)
Foreign key constraints pragma set up. Listener will turn them on each time the database is connected to since it does not persist with sqlite
Forgot to remove test tables from DB