creating pic model in db