Some general scrips written in sql and python for data mining