created tables and primary key constraints