Created context.xml in the META-INF folder so that Tomcat would know where to look for the databse..