lib: implement more models and collections
app: add a Database class to cache results
app: fix github url