Improve DB schema, and add background updater.