Adds sql action.