Changed DB to use MongoDB

MongoDB is easier to use as it creates the DBs/tables on the fly and
requires less code