updated database definition