Bag Allocation

Continued development, now includes the actual database interaction. Bag
allocation is now ready to be used.