Adding mysql reference code