Almost completed database implementation

Everything's there. I'm just one bug away from getting this to work.
This also includes a re-write of the home screen's list view.