start of sql stuff and finished emailing recipes