Starting database code.
Need to allow network access.
I must use asynctask for network operations which makes everything less pleasant.
Well, this is hideous but I think it's the right general pattern now.