unnecessaries removed
reworked with mongoDB instead SQLDB