log-in & DB change

this is a big change in DB.   Instructions in functionalities.doc