Removed a bunch of unused code. Removed Class::DBI code and replaced with DBIx::Class model

Main code rev. 1829-1830