Moved album::getDetails() and album::getPhotoCount() to new db

also some minor cleanup in category class