added tables and relation