Convert most stuff over to promises, make scoping work correctly, and also save favorites to a sqlite db