Writing some other peices, finallizing the db wrapper