Fix non-working loggertodb

Apparently the changes of 0a31277558b83965a89b91c9509cf6629eb3873c were
untested. Tested and fixed.
Added pyodbc to py2exe dependencies

pyodbc is required for loggertodb's odbc file format.
Cleaner workaround for py2exe bug

Implemented a cleaner solution instead of
c0a07bc636c60ce8da22e5ae9aa41060e02ecab1.