Database wrapper setup