move database wrapper and use own database for each slave in xdist