db ctor now enables foreign key constraints