renamed db-api function