change sql_queries to mysql