Database Read/Write Test Implementation

Took a lot longer than originally intended...