Fixed sql syntax and error checking
SQL Syntax Fixes

Fixed sql syntax in several tables and added foreign key definitions to
the recipe table.