First take at database code.

- Read only pastes.
- Using persistent library