support for persistent-odbc

Hello, could you please incorporate these changes to enable persistent to handle odbc integration
Thanks