Slightly faster annotations

This could use more speedups; it takes 10-15 hours or so to add a small file to a 1k genomes database. This at least makes it usable on larger databases, before it was taking infinity time.

I think it might be faster to load the BED file as a temporary table and join on it. My SQL kung fu is weak so I'll need a little more time to see if I can get something like that working for each of the annotation cases.