Implemented one-to-many relationship between tables and rows