Refactors Logger to add getFirstMessage/getLastMessage to replace getLastQuote/getFirstQuote. This change allows
us to have a more robust generalized method for use in other plugins.

Fixes parse errors in Quote and Logger SQL