Added auto-refresh, some more cool stuff, relying on database more, preparing API