implemented the first pass db helper class