Added some error hanlding to data import
Added a switch for doing data handling or not when running syncdb