removes some mysql_* function calls