Refactored UsersDaoImpl class.

Improved UsersDaoImpl code security - modified code so that query
parameters will be escaped appropriately by the JDBC driver. The same
must be done to all the DaoImpl classes.