Convert iCalendar (rfc5545) to sql (as in SQLite)