Update model.class.php

Adding pre and post query arguments