added mysql create notes; cleaned up connection call