Basic db wrapper done