Pushing changes to handle db connection pools
Change to handle sql err