Jdbc3 callable stmt test

Update the Jdbc3CallableStatementTest to functioning status. There were three issues for this test. First was the server wasn't handling in/out parameters correctly, which has been fixed. Second was I had put in some fixes in the JDBC driver to work around these problems. Now the that the server is fixed, some of the driver changes are removed. 

Finally, rewrite all the functions from PgSQL into our local java script equivalent. . 

Correct a few queries in the DatabaseMetaData process to make Squirrel even happier.