Added accounts table and a few functions to access it
Added more accessor functions
Renamed account to username
One more rename
Changed account manager to use local database