cleanup whitespace, change mysql client to use fetchmany instead of
fetchall