creating a dealdb file for mongo functions and routes