More work on threading, added missing event utils file
cleaned up auth db calls, other general cleanup