changed db_api