some sql and model