missed making some stuff generic for mysql