updated database interface