Add db support.
Begin removing functionality that won't be needed.