manager.java changed to work for database structure.  It probably needs work still