just you have to create two handle with two connection. If you can to select two databases with two different handle. If you want to access the particular db value depending upon the handle