added database helper and table classes