Added DB handling code.

Wrote some tests into the main activity to display DB data in logcat.
Still working out some wrinkles.