Reduce code reuse by the functions that make queries for the api
Fixes Issue #44; Adding loading message