Further progress with testing and refactoring of database. Entity and Address models defined. Entity to Address relationship working.