refactor to use global connection variable
shell script to test db operations
properly terminate name and email with null char