enforce foreign key constraints in sqlite.