portfolio options, photo options, database query for photos page