initial save is writing username as session variable to database