Fixed JDBC SQLs.