database update, reworking connective logic