Fixed checking for MySQL values

Fixes #6