Fixed syntax errors in Oracle and added almost all event handler calls. Logging functionality now works, in a rudimentary sense.