table creation and data insertion is complete. Need to work on error handling