Changed DB access to support mariadb instead of mongodb because NoSQL is for chumps