added some sql