Use caching github api
Extract github api caching/auth setup into a helper class
Fix bad sql query