starting db wrapper