Refactored DB objects and added creation methods.