Add database (v0.0.1)

Probably usable now. No test on this build yet.