a better after_fork block without duplicating the db info