Added process for initializing local database on login to sync with remote db.  Added comments where appropriate and updated prototype server to support the initialize db concept