Rewrite to use poolboy