Generic Model for Node.js and MySQL