fixed app to use mongo