tests for perm data in DB and queries API only if dates don't line up

also added a loading icon but chrome adds gif extension and causes an error in loading true

http://127.0.0.1:8000/true

^^ what is with that?