Cleaned up and expanded indexing of account DB table
Added the concepts of locking and inactivating accounts