modified database interface