code refactor to place download stuff together also initializing mtg database in app now