Rework database and rewrite order matching
Replace order matching trigger with a function
Minor revisions
Replace match insert trigger with a function
Merge pull request #17 from txbits/kirk/db-rework

Rework database and rewrite order matching