Refactored Dao implementations.

Modified Dao implementations so that query parameters will be escaped
appropriately by the JDBC driver.