Add db queries before crawls