Simplified bowtie db loop.