Save the logindate in the local database.