Node.JS application for auth using MySQL