finish mongodb start and stop functions