Changed SQL Database to view user search photos