Update to local DB, and fixed a lot of UI bugs.