Fix mysql call