Finishing Allocate method
Refactor: Moving URN logic into Database