Added basic loop interface

Implemented a basic loop interface for accepting input.
Created a method that generically prints a ResultSet object.