Database

Tested with haskell and scheme on a1. You need to use the a1sol-dev branch hash to run the test against. The hash I used is this one: 68460cc3b09b3cd59b20074fd6010757956d35c0

This should address all of the other api issues. Let me know if you need anything else.