creating picture model in db