sqlite3 -line .rtcom-eventlogger/el.db 'select service_id, ET.name, datetime(storage_time,"unixepoch") storage_time, datetime(start_time,"unixepoch") start_time, datetime(end_time,"unixepoch") end_time, is_read, flags, E.remote_uid, remote_name, abook_uid, group_uid, channel, free_text from Events as E, EventTypes ET, Remotes as R where E.event_type_id=ET.id and R.remote_uid=E.remote_uid and E.local_uid=R.local_uid order by storage_time;'