cleaned up logging, fixed a bug with escaping out SQL text ('), fixed an exception caused by a null vote.