populate db with app_id