updated for jdbc connection of tomcat 7