added logging module and mongoose(module to access mongodb)