created db tables and models with associations