added code for JDBC connection and more debugging on timestamp