created tables and relationships