adding limit params to long-running db queries