This code is freaking ugly, but the database now has a row cap.
Merge branch 'master' of https://github.com/WhySearchTwice/Chrome-Extension