Moved fetchCrimes as proper API middleware, wrote test to ensure it works.