add some sql trick and ruby encryption trick