fix core model
fix core model to log sql and bind array