Added Database working class

foreach