update database interface and doc