Initial SQL and dataobjects for blocks.

Fixes #2