added new table definition and enable foreign key in sqlite