added more classes to access database