WIP: dbconnection setup & refactor userOperation.js