implemented sql,queue versions of encounter creation
implemented sql queued versions of encounter export