added some comments, added a check for when the DBManager is not created on the main thread, an exception will be thrown