updated to solve JDBC exception