Have uploaded photos store their extension in the db