You need to check on which thread this class in going to be initialized from, it shouldn't be the mainthread as otherwise the gui will block while your doing the db load thingy.