Yes, there's a script that can be used to generate a model from a table. Look at this post
http://www.anchormodeling.com/?p=1078
You might also be interested in looking at https://github.com/Roenbaeck/sisula to speed up loading of data into the database.
Regards,
Frederik