Minor: improved OPLA feature and document manipulation from SQL