Added LIMIT 1 to a bunch of db queries