added common db class
and basic bean structure