Replacing ResultSet with classic Database:: functions

ResultSet does not exists in chamilo 1.10 in favour of Doctrine.
Replacing datepickerdate with date_picker element
Adding @deprecated to old functions.