made some changes in each of the model classes to ensure that all resultsets, connections, and statements are closed