database set up for multiple images