Modified code to work with oracle 11g XE database