Creating Picturemodel in database