Created Writer interface, refactored the database readers to conform to it and updated Poijoi main class to use the interfaces