add yap database components to AppDelegate