Created Writer interface, refactored the database readers to conform to ...

Created writer structure and made DatabaseCreator conform to that new structure. Changed the main Poijoi class to use the interfaces rather than having database specific knowledge.