Major changes in front end with new db
Revert "Major changes in front end with new db"

This reverts commit 9fbc9b377fe98625e48a977bfc3da6d527cc81b4.
Revert "Revert "Major changes in front end with new db""

This reverts commit 914e82473987fa57a368b88bb538247a671b7d6f.