correction of db api