IBP Middleware codes for connecting to IBDB database