Hook up the pics model to connect a form to the database