Also made records.rb create whole modules

The purpose is so the rb-gen'd code can handle imports