finish recipe adding, add line break formatting, improve security

Recipes now add correctly, and also create a new category if applicable.
Line breaks are now formatted in the output page.
Security is improved by pruning all user input for mysql injection.