retry database operation if database is busy