3.0 - log queries with errors

This adds the ability to log query even if they error out. Previously exceptions were not caught and queries would be left un-logged. Additionally, removed the sql_dump element as it is not needed any longer
typo execution