query method added to mysql & model to perform free queries