Created the picture model in the database