Fix update checker to actually tell if update
Organize imports
Fix database hook