repair ODBC abstraction layer

It's a lot of work, but in my opinion creating the following functions would be much  cleaner:
`get_local_option(Opt)`  `get_local_option(Opt, Default)`
and 
`get_local_host_option(Opt,Host)`  `get_local_host_option(Opt, Host, Default)` instead of `get_local_option(Opt,Host)`