Update login crap

+ add some changes in misc stuff + hashed out db helper