Adding mysql Check