Setting up some database relationships.