[db] changed implementation of DeleteValues()
[db] get rid of FormatSQL() and use PrepareSQL() instead
[db] get rid of ResultQuery() and use dataset query() instead