create has_many_and_belongs_to associations for titles and genres