Catching DB errors in sqlippool