Finished few Database Methods
Fixed few code issues. Added Sessions
Added session creator
Added UpdateMachine to API
Changed login error to json output