sql get app_action