adding Database class