Task/express4 migration

task/express4-migration made everything work, successful migration of all modules to most updated versions, updated db and got rid of all race conditions in code.