Fixed database connectivity for Glassfish.