Coffee-script class for mysql interaction