hook up the pics model to connect a form to database