add config and mongoose model