updated some code for using database models and got rid of a bunch of outdated code.  Fixed some functionality with Zend.