Added {crmRetrieve}, modified {crmSQL} and updated events.tpl