Use LOG statement instead of System.out.println
Standardize SQL queries.

I changed the SQL queries so that that all follow the same naming
standard with the sql/value object arrays.