Changed JDBC URL creation to retain query parameters.