many edits...creating more sql statements, more helper methods, adding console output for result sets..