First commit with ability to push documents to database, in theory.

Will probably explode horrible.