added database helper class