added some sql'n shit