added cap'n proto generated code and schema, added start of 'history' to database.rs