hookBefore allows for default modeling for each query