Fixed some missed updates to the pwords table, mostly related to clongin
fix password-related bugs caused by incomplete transition to the new, dedicated passwordstore
Pulled all of the SQL out of change_storage