restructures database
applies resource database changes