ensure all db connections are closed after trying to update deployable. Refs #320

Conflicts:
	Settings/management/commands/updateifrequested.py