updated config and mongoose