db wrapper added