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