Merge pull request #130 from dsandras/ds-pua-dbupdate-fix

Fixes bug where the pua db elements were deleted too early.
Conflicts:
	modules/pua/pua.c