Belongs_to and has_many db scenario