removing main() and adding methods to dao interface.