add the necessary tables and models and create necessary relationships.