Added a space between the last column and the WHERE in SQL query.
Implemented DAO function for updating a node from a ping.