changes made by sir due to problem of mysqldb