Fix db request for own vintages search