switched to object for db class, rewrote user class, updated client code
switched to object for db class, rewrote user class, updated client code